<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
	xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head th:replace="dashboard/header :: header"></head>
<body>

	<!--
@desc  更新
@author WeiXiaoJin
@since 2020-01-21 10:44:46
-->

	<div layout:fragment="content">
		<div class="container-fluid content-main">
			<div class="animated fadeIn">
				<div class="row">
					<div class="col-sm-12">
						<div class="card">
							<div class="card-body">

								<form class="form-horizontal" id="modifyForm">

									<input type="hidden" name="id" th:value="${bean.id}" />

									<div class="form-group row">
										<label class="col-md-2 col-form-label control-label"
											for="text-input">bpsKey </label>
										<div class="col-md-9">
											<input class="form-control" id="bpsKey" type="text"
												th:value="${ bean.bpsKey}" name="bpsKey" placeholder="">
										</div>
									</div>
									<div class="form-group row">
										<label class="col-md-2 col-form-label control-label"
											for="text-input">bpsModule </label>
										<div class="col-md-9">
											<input class="form-control" id="bpsModule" type="text"
												th:value="${ bean.bpsModule}" name="bpsModule"
												placeholder="">
										</div>
									</div>
									<div class="form-group row">
										<label class="col-md-2 col-form-label control-label"
											for="text-input">bpsName </label>
										<div class="col-md-9">
											<input class="form-control" id="bpsName" type="text"
												th:value="${ bean.bpsName}" name="bpsName" placeholder="">
										</div>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

	<footer th:replace="dashboard/footer :: footer"></footer>

	<script type="text/javascript">
		var modifyForm = $("#modifyForm");
		$(function() {
			addForm.validate({
				ignore : [],
				rules : {
					bpsKey : {
						required : true
					},
					bpsModule : {
						required : true
					},
					bpsName : {
						required : true
					}
				}
			});
		});

		function submitHandler() {
			var result = $.validate.form("modifyForm");
			if (result) {
				var modifyUrl = ctx + "base/workflow/workflowBps/update";
				$.operate.save(modifyUrl, modifyForm.serialize());
			}
		}
	</script>
</body>
</html>
